# -*- coding: utf-8 -*-
"""
Created on Wed Sep 25 15:29:36 2019

@author: XCL01
"""

import collections
print(isinstance('abfewi', collections.Iterable))#是否可以迭代
'''
from collections import Iterable
print(isinstance('abfewi', collections.Iterable))
'''
sentence = '索引超出了范围时，Python会报一'
a = isinstance(sentence , str)
b = isinstance(sentence , list)
print(a,b)